﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BiliBiliCSharpStudy.ch30.d06 {
    class HelloGenericInterface2 {
        public static void Demo() {
            Student stu2 = new Student();
            stu2.ID = 10000000000001;
            stu2.Name = "Timothy";
        }
    }

    interface IUnique<TId> {
        TId ID { get; set; }
    }

    /**
     * 泛型接口
     * 具体类
     */
    class Student : IUnique<ulong> {
        public ulong ID { get; set; }
        public string Name { get; set; }
    }
}
